package com.liy.cloud.base.service.impl;

import com.liy.cloud.base.dao.BaseCardTypeDao;
import com.liy.cloud.base.entity.BaseCardTypeEntity;
import com.liy.cloud.base.service.BaseCardTypeService;

import com.liy.cloud.common.ext.dao.IExtBaseDao;
import com.liy.cloud.common.ext.service.impl.ExtBaseServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Auther: libs
 * @Date: 2018/6/20 16:46
 * @Description:
 */
@Service
public class BaseCardTypeServiceImpl extends ExtBaseServiceImpl<BaseCardTypeEntity, String > implements BaseCardTypeService {

    @Resource
    private BaseCardTypeDao cardTypeDao;

    @Override
    public IExtBaseDao<BaseCardTypeEntity, String> getDao() {
        return cardTypeDao;
    }

    @Override
    public int update(BaseCardTypeEntity baseCardTypeEntity) throws Exception {
        baseCardTypeEntity.init();
        return super.update(baseCardTypeEntity);
    }
}
